using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace TicketSellerService
{
	[ServiceContract]
	public interface IFlightTicketService
	{
		[OperationContract]
		[WebInvoke( Method = "GET",
		 	UriTemplate = "/source/{source}/destination/{destination}/date/{date}")]
		AvailableFlights search( string source, string destination, string date);
		
		[OperationContract]
		[WebInvoke( Method = "GET",
		           UriTemplate = "/flightNumber/{flightNumber}/date/{date}")]
		TicketReservation reserve( int flightNumber, string date); 
		
		[OperationContract]
		[WebInvoke( Method = "GET",
		           UriTemplate = "/reservation/{rsrvId}")]
		string cancel( int rsrvId);
	}
}

